package com.abso.mp3tunes.locker.ui.views;

import org.eclipse.swt.widgets.Composite;

import com.abso.mp3tunes.locker.ui.viewers.ArtistViewer;
import com.abso.mp3tunes.locker.ui.viewers.LockerViewer;

/**
 * A specialized panel showing the list of artists.
 */
public class ArtistViewPanel extends LockerBrowserViewPanel {

	/** The artist tree viewer. */
	private ArtistViewer viewer;

	/**
	 * Constructs a new panel.
	 * 
	 * @param parent
	 *            the parent control.
	 * @param lockerBrowserView
	 *            the locker browser view.
	 */
	public ArtistViewPanel(Composite parent, LockerBrowserView lockerBrowserView) {
		super(parent, lockerBrowserView);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.abso.mp3tunes.locker.ui.views.LockerBrowserViewPanel#createControl(org.eclipse.swt.widgets.Composite)
	 */
	public Composite createControl(Composite parent) {
		viewer = new ArtistViewer(parent, getLockerBrowserView());
		return viewer.getTree();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.abso.mp3tunes.locker.ui.views.LockerBrowserViewPanel#getLockerViewer()
	 */
	protected LockerViewer getLockerViewer() {
		return viewer;
	}

}
